package com.btl.sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class SqlHelper extends SQLiteOpenHelper {

	public SqlHelper(Context context){
		super(context, "myhistory.db", null, 1);
	}
	

	@Override
	public void onCreate(SQLiteDatabase db) {

		db.execSQL("create table history_table(hid integer primary key autoincrement,username varchar(20),vid varchar(20),v_time varchar(50),v_title varchar(50),v_intro varchar(50))");
		Log.i("v_id", "创建成功");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}
  
}
